
package com.joysuch.wwyt.core.enums;

/**
 * @author qingzhou
 * 2019-12-17
 */
public class BaseConfigCodes {

    public static final String MONITOR_POINT_HTTP_SERVER_URL = "monitor.point.http.server.url";

    public static final String LOCATE_SERVER_LOGIN_URL = "locate.server.login.url";
    public static final String LOCATE_SERVER_V2_LOGIN_URL = "locate.server.v2.login.url";

    public static final String LOCATE_AREA_NAME = "wwyt.screen.locate.area.name";
    /**
     * 报警模块
     */
    public static final String LOCATE_SERVER_ALARM_LIST = "locate.server.alarm.list";
    public static final String LOCATE_SERVER_ALARM_BATCH = "locate.server.alarm.batch";
    /**
     * 人员模块 v1 : 适用3.x
     */
    public static final String LOCATE_SERVER_EMPLOYEE_ADD = "locate.server.employee_add";
    public static final String LOCATE_SERVER_EMPLOYEE_EDIT = "locate.server.employee_edit";
    public static final String LOCATE_SERVER_EMPLOYEE_DELETE = "locate.server.employee_delete";
    public static final String LOCATE_SERVER_EMPLOYEE_SEARCH = "locate.server.employee_search";

    /**
     * 人员模块 v2 : 适用>=4.x
     */
//    public static final String LOCATE_SERVER_V2_EMPLOYEE_ADD = "locate.server.v2.employee_add";
//    public static final String LOCATE_SERVER_V2_EMPLOYEE_EDIT = "locate.server.v2.employee_edit";
    public static final String LOCATE_SERVER_V3_EMPLOYEE_SAVE = "locate.server.v3.employee.save";
    public static final String LOCATE_SERVER_V2_EMPLOYEE_DELETE = "locate.server.v2.employee_delete";
    public static final String LOCATE_SERVER_V2_EMPLOYEE_BATCH_DELETE = "locate.server.v2.employee_batch_delete";
    //    /**
//     * 根据uniqueId查询人员存在与否，同样适用承包商
//     */
//    public static final String LOCATE_SERVER_V2_EMPLOYEE_SEARCH = "locate.server.v2.employee_search";

    /**
     * 承包商人员模块 v2 : 适用>=4.x
     */
//    public static final String LOCATE_SERVER_V2_STAFF_ADD = "locate.server.v2.staff_add";
//    public static final String LOCATE_SERVER_V2_STAFF_EDIT = "locate.server.v2.staff_edit";
    public static final String LOCATE_SERVER_V3_STAFF_SAVE = "locate.server.v3.staff_save";
    public static final String LOCATE_SERVER_V2_STAFF_DELETE = "locate.server.v2.staff_delete";
    public static final String LOCATE_SERVER_V2_STAFF_BATCH_DELETE = "locate.server.v2.staff_batch_delete";

    public static final String LOCATE_SERVER_V3_STAFF_HEADS_SAVE = "locate.server.v3.staff.heads.save";
    /**
     * 人员头像
     */

    public static final String LOCATE_SERVER_V3_PEOPLE_HEAD_SAVE = "locate.server.v3.people.head.save";

    public static final String LOCATE_SERVER_V3_PEOPLE_HEADS_SAVE = "locate.server.v3.people.heads.save";
    /**
     * 人员帽子
     */

    public static final String LOCATE_SERVER_V3_PEOPLE_CAP_SAVE = "locate.server.v3.people.cap.save";
    public static final String LOCATE_SERVER_V3_PEOPLE_CAP_DELETE = "locate.server.v3.people.cap.delete";
    /**
     * 标签解绑
     */
    public static final String LOCATE_SERVER_V2_LABEL_UNTIE = "locate.server.v2.label_untie";

    /**
     * 作业区域模块
     */
    public static final String LOCATE_SERVER_WORK_AREA_SAVE = "locate.server.work.area_save";
    public static final String LOCATE_SERVER_WORK_AREA_DELETE = "locate.server.work.area_delete";
    public static final String LOCATE_SERVER_WORK_AREA_SEARCH = "locate.server.work.area_search";
    /**
     * 人员同步开关: true/false
     */
    public static final String LOCATE_SERVER_EMPLOYEE_SYNC_OPEN = "locate.server.employee_sync_open";
    /**
     * 当前公司buildId
     */
    public static final String LOCATE_CURRENT_BUILD_ID = "websocketBuildId";

    /**
     * 五位一体地图类型
     */
    public static final String WWYT_SERVER_MAP_TYPE = "wwyt.server.maptype";

    /**
     * 人员在岗在位版本: 3.x  4.x; 不填默认3.x
     */
    public static final String LOCATE_VERSION = "locate.version";

    /**
     * 登录用户名
     */
    public static final String LOCATE_APP_ID = "locateAppId";
    /**
     * 登录md5盐
     */
    public static final String LOCATE_SERVER_SECRET = "locateSecret";
    /**
     * 人员在岗在位ip:port，需要拼接http://
     */
    public static final String LOCATE_SERVER_URL = "locateServerUrl";

    public static final String ALARM_MESSAGE_TIME_LINE = "alarm.message.timeline";

//    /**
//     * 人员定位 端口 ip
//     */
//    public static final String ORIENTATION_SERVER_URL = "orientationServerUrl";

    /**
     * 人员定位 区域增加/修改
     */
    public static final String ORIENTATION_AREA_SAVE_URL = "orientationAreaSaveUrl";

    /**
     * 人员定位 区域删除
     */
    public static final String ORIENTATION_AREA_DELETE_URL = "orientationAreaDeleteUrl";

    /**
     * 人员定位 报警模板分页
     */
    public static final String ORIENTATION_PAGE_ALARM_TEMPLATE = "orientationPageAlarmTemplate";

    /**
     * 人员定位 作业报警
     */
    public static final String ORIENTATION_PAGE_CERTIFICATE_ALARM = "orientationPageCertificateAlarm";


    //ORIENTATION_PAGE_AREA_ALARM
    /**
     * 人员定位 区域报警
     */
    public static final String ORIENTATION_PAGE_AREA_ALARM = "orientationPageAreaAlarm";


    /**
     * 人员定位 批量处理作业报警
     */
    public static final String ORIENTATION_SAVE_CERTIFICATE_ALARM = "orientationSaveCertificateAlarm";

    /**
     * 人员定位 批量处理区域报警
     */
    public static final String ORIENTATION_SAVE_AREA_ALARM = "orientationSaveAreaAlarm";

    public static final String ORIENTATION_SOLVE_CAR_ALARM = "orientationSolveCarAlarm";

    public static final String LOCATE_V2_AREA_PERSON_COUNT = "locate.v2.area.person.count";

//    /**
//     * 人员定位 承包商增加
//     */
//    public static final String ORIENTATION_ADD_CONTRACTOR_URL = "orientationAddContractorUrl";
//
//    /**
//     * 人员定位 承包商修改
//     */
//    public static final String ORIENTATION_ALTER_CONTRACTOR_URL = "orientationAlterContractorUrl";

    /**
     * 人员定位 承包商保存
     */
    public static final String LOCATE_API_SYNC_CONTRACTOR_SAVE = "locate.sync.api.contractor.save";

    /**
     * 人员定位 承包商删除
     */
    public static final String ORIENTATIONDELETE_DELETE_CONTRACTOR_URL = "orientationDeleteContractorUrl";

    //ORIENTATION_SERVER_URL


    /**
     * 人员在岗在位部门同步接口 - 部门-新增
     */

    public static final String LOCATE_API_SYNC_DEPART_ADD = "locate.sync.api.depart.add";

    /**
     * 人员在岗在位部门同步接口 - 部门-修改
     */

    public static final String LOCATE_API_SYNC_DEPART_UPDATE = "locate.sync.api.depart.update";


    /**
     * 人员在岗在位部门同步接口 - 部门-删除
     */

    public static final String LOCATE_API_SYNC_DEPART_DELETE = "locate.sync.api.depart.delete";

    /**
     * 人员在岗在位部门同步接口 - 部门-列表
     */

    public static final String LOCATE_API_SYNC_DEPART_LIST = "locate.sync.api.depart.list";

    /**
     * 人员在岗在位部门同步接口 - 部门-查询
     */

    public static final String LOCATE_API_SYNC_DEPART_SEARCH = "locate.sync.api.depart.search";


    /**
     * 公司查询
     */
    public static final String LOCATE_API_SYNC_COMPANY_SEARCH = "locate.sync.api.company.search";

    /**
     * 人员在岗在位部门同步接口 - 岗位-新增
     */

    public static final String LOCATE_API_SYNC_JOB_ADD = "locate.sync.api.job.add";

    /**
     * 人员在岗在位部门同步接口 - 岗位-修改
     */

    public static final String LOCATE_API_SYNC_JOB_UPDATE = "locate.sync.api.job.update";

    /**
     * 人员在岗在位部门同步接口 - 岗位-删除
     */

    public static final String LOCATE_API_SYNC_JOB_DELETE = "locate.sync.api.job.delete";

    /**
     * 人员在岗在位部门同步接口 - 岗位-查询所有岗位
     */

    public static final String LOCATE_API_SYNC_JOB_LIST = "locate.sync.api.job.list";

    /**
     * 人员在岗在位部门同步接口 - 岗位-查询岗位
     */

    public static final String LOCATE_API_SYNC_JOB_SEARCH = "locate.sync.api.job.search";

    //ORIENTATIONDELETE_CHECKETE_SN_IN_AREA

    /**
     * 人员在岗在位同步接口 - sn号是否在区域
     */

    public static final String ORIENTATIONDELETE_CHECKETE_SN_IN_AREA = "orientationCheckSnInArea";

    /**
     * 人员在岗在位同步接口 - 获取报警总数
     */

    public static final String ORIENTATIONDELETE_ALARM_NUMBER = "orientationAlarmNumber";

    /**
     * 人员在岗在位同步接口 - 获取各报警数量
     */

    public static final String ORIENTATIONDELETE_ALARM_TYPES_NUMBER = "orientationAlarmTypesNumber";


    /**
     * 人员在岗在位同步接口 - 报警同步开关
     */

    public static final String LOCATE_SERVICE_ALARM_OPEN = "locate.service.alarm.open";

    /**
     * 人员在岗在位同步接口 -访问协议  http / https
     */
    public static final String LOCATE_API_SYNC_PROTOCOL = "locate.sync.api.protocol";

    /**
     * 获取webSocket token
     */
    public static final String LOCATE_V3_SCREEN_GET_TOKEN = "locate.v3.screen.get.token";

    /**
     * 获取人员版本号
     */
    public static final String LOCATE_V3_BINDERS_VERSION = "locate.v3.binders.version";

    /**
     * 获取大屏人员列表
     */
    public static final String LOCATE_V3_SCREEN_BINDERS = "locate.v3.screen.binders";

    /**
     * 获取大屏人车列表
     */
    public static final String LOCATE_V3_SCREEN_REGIONAL_POPULATION = "locate.v3.screen.regional.population";

    /**
     * 获取大屏人员列表
     */
    public static final String LOCATE_V3_SCREEN_AREA_PERSON = "locate.v3.screen.area.person";

    /**
     * 订阅
     */
    public static final String LOCATE_V2_SUBSCRIBE = "locate.v2.subscribe";

    public static final String LOCATE_V3_SUBSCRIBE = "locate.v3.subscribe";

    /**
     * url
     */
    public static final String LOCATE_MY_URL = "locate.my.url";

    /**
     * 账号登录方式： 普通账号登录
     */
    public static final String LOGIN_TYPE = "login.type";
    /**
     * 验证码前端失效时间，单位: 天; 不配置默认1天
     */
    public static final String SMS_SURVIVE_TIME = "sms.survive.time";


    /**
     * redis key
     */
    public static final String OPEN_SERVICE_TOKEN_REDIS_KEY = "locate:%s:%s:openServiceToken";

    public static final String GETUI_TOKEN_REDIS_KEY = "alert:geTuiToken";

    public static final String ALERT_TRIGGER_LOCK_KEY = "alertTriggerLock";

    public static final String COMPONENT_COUNT_KEY = "processComponent:%s:%s:componentCount";


    public static final String WORKFLOW_PROCESS_INS_STATUS_KEY = "hse:workflow::procDefKey:%s::processIns:id:%s";

    //人员轨迹开放平台配置
    /**
     * 开发平台服务地址ip:port，需要拼接http://
     */
    public static final String OPEN_SERVICE_SERVER_URL = "openServiceServerUrl";

    public static final String OPEN_SERVICE_TOKEN_API = "openServiceTokenApi";

    public static final String OPEN_SERVICE_PERSON_TRAJECTORY_API = "openServicePersonTrajectoryApi";

    public static final String ROLE_DATA_SECURITY_REDIS_KEY = "dataSecurity:%s:%s:roleDepart";

    public static final String PERSON_TRAJECTORY_TIME_FRAME = "personTrajectoryTimeFrame";

    public static final String PERSON_TRAJECTORY_LOCAL_TYPE = "personTrajectoryLocationType";

    public static final String PERSON_TRAJECTORY_TRACING_TIME_MAX = "personTrajectoryTracingTimeMax";

    public static final String PERSON_TRAJECTORY_LAST_LOCATION = "personTrajectoryLastLocation";

    public static final String PERSON_TRAJECTORY_VERIFY__FLOOR = "personTrajectoryVerifyFloor";
    // 声光报警蓝牙网关Mac 配置
    public static final String OPEN_SERVICE_ALARM_BLUETOOTH_MAC = "openServiceAlarmBluetoothMac";
    public static final String OPEN_SERVICE_ALARM_BLUETOOTH_BUILD_ID = "openServiceAlarmBluetoothBuildId";

    public static final String RISK_EVALUATION_CONTROL_REDIS_KEY = "riskEvaluation:%s:%s:control";
    public static final String RISK_EVALUATION_CONTROL_HASH_KEY = "unCheckDynamicRisk";


    /**
     * 个推配置
     */
    public static final String GETUI_APP_KEY = "appKey";
    public static final String GETUI_MASTER_SECRET = "masterSecret";
    public static final String GETUI_HTTP_URL = "geTuiHttpUrl";
    public static final String GETUI_PUSH_SINGLE_BATCH_ALIAS_HTTP_URL = "geTuiPushSingleBatchAliasHttpUrl";
    public static final String GETUI_EXAM_NOTIFICATION_CONTENT = "geTuiExamNotificationContent";
    public static final String GETUI_EXAM_PUBLISH_NOTIFICATION_CONTENT = "geTuiExamPublishNotificationContent";
    public static final String GETUI_EXAM_NOTIFICATION_TITLE = "geTuiExamNotificationTitle";
    public static final String GETUI_TRAINNING_NOTIFICATION_CONTENT = "geTuiTrainningNotificationContent";
    public static final String GETUI_TRAINNING_NOTIFICATION_TEACHER_CONTENT = "geTuiTrainningTeacherNotificationContent";
    public static final String GETUI_EXAM_CANCEL_NOTIFICATION_CONTENT = "geTuiExamCancelNotificationContent";
    public static final String GETUI_EXAM_BY_CANCEL_NOTIFICATION_CONTENT = "geTuiExamByNotificationContent";
    public static final String PROCESS_TO_DO_MESSAGE = "processToDoMessage";
    public static final String GETUI_ENTERPRISE_UNIQUE_ID = "EnterpriseUniqueID";
    public static final String GETUI_ON_OFF = "geTuiOnOff";
    public static final String INVESTIGATE_GETUI_ON_OFF = "investigateGeTuiOnOff";
    public static final String READED_NOTIFY_KEEP_DAY = "readedNotifyKeepDay";
    public static final String PATROL_SUCCESS_CONFIG = "investigatePatrolResultSuccess";

    /*
     * CenterReport的URL配置
     */
    public static final String CENTER_REPORT_URL = "centerReportUrl";

    public static final String POSITION_CHECK_CACHE_TIME = "positionCheckCacheTime";
    public static final String INVESTIGATE_DATA_KEEP = "investigateDataKeep";

    // 隐患治理历史数据迁移开关 1-开 0-关  默认0
    public static final String INVESTIGATE_HIS_DATA_MOVE = "investigateHisDataMove";
    // 隐患治理历史数据保留时长 单位: 月
    public static final String INVESTIGATE_HIS_DATA_SAVE_MONTH = "investigateHisDataSaveMonth";

    public static final String MONITOR_POINT_ALARM_INTERVAL = "monitor.point.alarm.interval";

    /**
     * 美卓移动气体配置
     */
    public static final String monitor_api_meizhuo_url = "monitor.api.meizhuo.url";
    public static final String monitor_api_meizhuo_token = "monitor.api.meizhuo.token";

    //视频播放服务地址
    public static final String VIDEO_PUSH_STREAM_URL = "videoPushStreamUrl";
    public static final String VIDEO_RECEIVE_STREAM_URL = "videoReceiveStreamUrl";
    public static final String VIDEO_RECEIVE_STREAM_PUBLIC_URL = "videoReceiveStreamPublicUrl";

    /**
     * 新版流程引擎
     */
    public static final String RISK_HIDDEN_DANGER_PROCESS_KEY = "risk.hidden.danger.process.key";

    /**
     * 数据库内容加解密key
     */
    public static final String LICENCE_AES_KEY = "7ec4f4688e2c41b4";
    /**
     * licence 模块菜单缓存 key
     */
    public static final String LICENCE_BLACKLIST_REDIS_KEY = "spip:%s:licence:blacklist";
    /**
     * licence 提醒日期（天）
     */
    public static final String LOCATE_LICENCE_REMIND_DAYS = "licence.remind.days";
    /**
     * 重⼤危险源
     */
    public static final String ZD_ProcessDefKey = "ZDProcessDefKey";

    public static final String ZD_ProcessDefKeyNew = "ZDProcessDefKeyNew";

    /**
     * 隐患排查异常
     */
    public static final String YH_ProcessDefKey = "YHProcessDefKey";
    /**
     * 隐患排查异常
     */
    public static final String YH_TimeOut_ProcessDefKey = "YHTimeOutProcessDefKey";
    /**
     * 开启分级报警
     */
    public static final String OPEN_GRADE_ALARM = "openGradeAlarm";
    /**
     * 开启隐患排查未检分级报警
     */
    public static final String OPEN_HD_TIME_OUT_GRADE_ALARM = "openHDTimeOutGradeAlarm";
    /**
     * 应⽤id
     */
    public static final String APPID = "appId";
    /**
     * 签名参数
     */
    public static final String SIGNATURE = "signature";
    /**
     * 流程引擎地址配置
     */
    public static final String WORKFLOW_IP_ADDRESS = "workflow.ip.address";
    /**
     * 流程引擎外网地址配置
     */
    public static final String OUTER_NET_WORKFLOW_IP_ADDRESS = "outer.net.workflow.ip.address";

    /**
     * 定位报警订阅端口号
     */
    public static final String WWYT_ALARM_PORT = "wwyt.alarm.port";

    /**
     * 风险分析对象固有风险
     */
    public static final String WWYT_RISK_NAME = "风险单元固有风险";
    /**
     * 报警等级
     */
    public static final String MH_GRADING_ALARM_BLUE = "蓝";
    public static final String MH_GRADING_ALARM_YELLOW = "黄";
    public static final String MH_GRADING_ALARM_ORANGE = "橙";
    public static final String MH_GRADING_ALARM_RED = "红";

    public static final Integer MH_LOW_ALARM = 1;//低位
    public static final Integer MH_HIGH_ALARM = 2;//高位
    public static final Integer MH_LOW_LOW_ALARM = 3;//低低位
    public static final Integer MH_HIGH_HIGH_ALARM = 4;//高高位

    /**
     * 接口返回200状态
     */
    public static final String MH_GRADING_ALARM_CODE = "200";
    /**
     * 隐患整改
     */
    public static final String YH_HIDDEN_DANGERS_RECTIFICATION = "hiddenDanger001";

    /**
     * 距离证书到期提醒 (天)数
     */
    public static final String CERTIFICATE_EXPIRATION = "certificate_expiration";

    /**
     * 隐患治理流程是否使用新版本业务流程引擎： 0=否， 1=是
     */
    public static final String NEW_WORKFLOW_SWITCH = "new.workflow.switch";

    /**
     * 新版流程引擎需要同步的字段类型
     */
    public static final String WORKFLOW_TYPES = "workflow.types";

    /**
     * 公告时间设置，默认10点
     */
    public static final String DEFAULT_TIME_OF_ANNOUNCEMENT = "default.time.of.announcement";


    /**
     * 百度人脸识别参数
     */
    public static final String BAIDU_FACE_ID_APP_ID = "app.face.AppId";
    public static final String BAIDU_FACE_ID_APP_KEY = "app.face.ApiKey";
    public static final String BAIDU_FACE_ID_APP_SECRET = "app.face.SecretKey";
    public static final String BAIDU_FACE_ID_APP_SYNC = "app.face.Search";

    /**
     * 流程引擎配置的参数
     */
    public static final String WORKFLOW_FIELD = "workflow.riskHiddenDanger.immediatelyRectify";
    public static final String WORKFLOW_STATE_FIELD = "workflow.overdue.status";
    public static final String WORKFLOW_PROCESS_NAME = "workflow.process.name";

    public static final String AUTOGRAPH = "autograph";


    /**
     * 开放平台v3redis key
     */
    public static final String OPEN_SERVICE_V3_TOKEN_REDIS_KEY = "locate:v3:%s:%s:openServiceToken";
    /**
     * 开放平台v3 redis refreshToken key
     */
    public static final String OPEN_SERVICE_V3_REFRESH_TOKEN_REDIS_KEY = "locate:v3:%s:%s:openServiceRefreshToken";

    /**
     * 开放平台v3 signId
     */
    public static final String OPEN_SERVICE_SIGNID_REDIS_KEY = "locate:v3:%s:%s:signId";

    //系统参数缓存
    public static final String BASE_CONFIG_REDIS_KEY = "base:config:%s:%s:code";

    public static final String RETRYCOUNT = "wwyt.convertPdf.retryCount";
}
